package org.csu.demo.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

@Data
@TableName("signon")
public class Sign {

    @TableId("username")
    private String username;
    /*@JsonIgnore*/
    @TableField(value = "password")
    private String password;

    @JsonIgnore
    public boolean isAllNull(){
        return password == null;
    }
}
